""" 
    twExtJS - ToscaWidgets wrapper for ExtJS (see http://extjs.com)
    
    Distributed under the terms of Lesser GNU Public License.
    
    (c) 2007 - Ricardo Girardi Sixel 
"""
from toscawidgets.widgets.extJS.util import Observable


class Menu(Observable):
#    template = "mako:toscawidgets.widgets.extJS.templates.menu.menu"
    items=[]
    params=Observable.params | frozenset(['items'])

class MenuItem(Observable):
#    template = "mako:toscawidgets.widgets.extJS.templates.menu.menuitem"
    checked=None
    group=None
    checkHandler=None
    text='menuitem'
    iconCls=None
    enableToggle = None
    toggleHandler = None
    pressed = None    
    handler = None
    menu=None
    params= Observable.params | frozenset(['items','group','checkHandler','text','iconCls','pressed','enableToggle',
            'toggleHandler','menu'])


